/**
 * @file com.demon.esport.admin.common.response
 * @CopyRight (C) www.10-game.com
 * @author jeffreychan
 * @email mebeyfeng@qq.com
 * @date 2018/10/18 23:11
 */

package com.demon.esport.admin.common.response;

import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author: jeffreychan
 * @Date: 2018/10/18 23:11
 * @Description: 返回表格数据.
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class TableResponse<E> extends Response {

    private List<E> result;

    private Long total;

    @Builder
    public TableResponse(Integer code, String message, Long timestamp, List<E> result, Long total) {
        super(code, message, timestamp);
        this.result = result;
        this.total = total;
    }
}
